-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Components: Refactor withFocusReturn
tests to RTL
#45012
Conversation
Size Change: 0 B Total Size: 1.27 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4f35506
to
d9daf50
Compare
Sure thing! Actually, the |
Thanks again, @tyxla! |
Focusing the |
This actually makes a lot of sense and I agree with the sentiment. In that case, we'll need I've changed it in 24b2f4e to actually resemble a user click on the textarea, which consequently focuses it. |
What?
This PR refactors the
withFocusReturn
tests to fully use@testing-library/react
instead ofreact-test-renderer
.Part of #44780.
Why?
It is a part of the recent effort to use
@testing-library/react
as the primary testing library.How?
We're updating rendering to now be with RTL.
Testing Instructions
Verify tests still pass:
npm run test:unit packages/components/src/higher-order/with-focus-return/test/index.js